package com.github.permissiondog.cancanpbackend.request;

import javax.validation.constraints.Pattern;

import javax.validation.constraints.Size;

public class LoginRequest {
    @Pattern(regexp = "^[\\da-zA-Z_\\-]{4,20}$", message = "用户名仅支持4-20个英文字符，数字，_和-")
    public String username;
    @Size(min = 6, max = 20, message = "密码长度在6-20个字符之间")
    public String password;
}